package com.itheima.Homework5;

public class Test011 {
    public static void main(String[] args) {
        int[] arr = {1, 2, 3};
        int[] arr1 = {1, 2, 3};
        compare(arr, arr1);
    }

    public static void compare(int[] arr, int[] arr1) {
        if (arr.length != arr1.length) {
            return;
        }
        for (int i = 0; i < arr.length; i++) {
            if (arr[i] != arr1[i]) {
                System.out.println("不相同");
                return;
            }
        }
        System.out.println("相同");

    }
}
